//
//  YFLoginApi.h
//  CoollangTennisBall
//
//  Created by Coollang on 2018/1/12.
//  Copyright © 2018年 Coollang-YF. All rights reserved.
//


#import "YFBaseRequest.h"

@interface YFLoginApi : YFBaseRequest

// 刷新登录
+ (instancetype)refreshLoginApi;

// 邮箱注册或邮箱登录
+ (YFLoginApi *)emailSignInOrSignUp:(BOOL)isSignIn email:(NSString *)email password:(NSString *)password;

// 手机验证码登录
+ (YFLoginApi *)loginApiByPhone:(NSString *)phoneNumber verifyCode:(NSString *)verifyCode withComplete:(void(^)(NSString *userId, BOOL isFirstLogin,NSError *error))completeBlock;


// 找回密码
+ (YFLoginApi *)forgotpasswordWithEmail:(NSString *)email;


/** 第三方登录
 * loginType: 平台类型，微信 2， Facebook:5
 * credential：授权凭证
 * token: 授权令牌
 */
+ (instancetype)loginWithThridPartplatform:(NSString *)loginType
                                credential:(NSString *)credential
                                     token:(NSString *)token;



@end
